package com.jlboot.core.weixin.impl;

import com.jlboot.app.admin.controller.weixin.common.service.MessageAction;
import com.jlboot.app.admin.controller.weixin.common.service.ServiceRequest;
import com.jlboot.app.admin.controller.weixin.common.service.ServiceResponse;
import com.jlboot.app.admin.controller.weixin.common.service.response.TextResponse;

/**
 * 点击菜单链接事件
 * Created by 51594 on 2023/4/6.
 */
public class EventViewAction implements MessageAction {
    /**
     * @param request
     * @return
     */
    public ServiceResponse doAction(ServiceRequest request) {
        if (request != null) {
            String wx_openid = request.getFromUserName();
            TextResponse response = TextResponse.init(request);
            response.setContent("点击菜单链接");
            return response;
        }
        return null;
    }
}